import { LSUtil } from 'tools-vue3'
import { reactive } from 'vue'

/**
 * 用户信息
 */
const SUser = reactive({
    userInfo: {},
    token: '',
    getToken: () => {
        let token = LSUtil.get('token')
        SUser.token = token
        return token
    },
    setToken: (token: string) => {
        LSUtil.set('token', token)
        SUser.token = token
    }
})
export default SUser
